[LegacyColorValue = true]; 

{ TSMcurvilinear: 2nd order least squares fit
   Copyright 1999, P.J. Kaufman. All rights reserved.

   length = number of data points in the calculation
   printopt = 0, no printing
		    = 1, print answers in PrintLog }

   inputs: length(20), printopt(0);
   vars: curvept(0), indep(0);

   indep = currentbar;
   curvept = TSMcurvilinear(length,close,indep,printopt);
   plot1(curvept,"TSMcurve");